package com.idp.web.test.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.idp.common.base.BaseEntity;

/**
 * 
 * 订单清单实体类.
 * 
 * <pre>
 * 	历史记录：
 * 	2017-06-16 Amber
 * 	新建文件
 * </pre>
 * 
 * @author
 * 
 *         <pre>
 * SD
 * 	Amber
 * PG
 *	Amber
 * UT
 *
 * MA
 *         </pre>
 * 
 * @version $Rev$
 *
 *          <p/>
 *          $Id$
 *
 */
public class OrderItem implements Serializable {

	private static final long serialVersionUID = 1L;

	/** ordertId */
	private Integer ordertId;
	/** productId */
	private Integer productId;
	/** id */
	private Integer id;
	/** sku */
	private String sku;
	/** price */
	private Double price;
	/** count */
	private Integer count;
	/** totalPrice */
	private Double totalPrice;

	private Ordert ordert;

	private Product product;

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer ordertId
	 */
	public Integer getOrdertId() {
		return this.ordertId;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             ordertId
	 */
	public void setOrdertId(Integer ordertId) {
		this.ordertId = ordertId;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer productId
	 */
	public Integer getProductId() {
		return this.productId;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             productId
	 */
	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String sku
	 */
	public String getSku() {
		return this.sku;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             sku
	 */
	public void setSku(String sku) {
		this.sku = sku;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double price
	 */
	public Double getPrice() {
		return this.price;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             price
	 */
	public void setPrice(Double price) {
		this.price = price;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer count
	 */
	public Integer getCount() {
		return this.count;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             count
	 */
	public void setCount(Integer count) {
		this.count = count;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double totalPrice
	 */
	public Double getTotalPrice() {
		return this.totalPrice;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             totalPrice
	 */
	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Ordert getOrdert() {
		return ordert;
	}

	public void setOrdert(Ordert ordert) {
		this.ordert = ordert;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "OrderItem [ordertId=" + ordertId + ", productId=" + productId + ", id=" + id + ", sku=" + sku
				+ ", price=" + price + ", count=" + count + ", totalPrice=" + totalPrice + ", ordert=" + ordert
				+ ", product=" + product + "]";
	}
	
	

}
